/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2019-2022. All rights reserved.
 * Description: bond common command interface define.
 */

#ifndef BOND_COMMON_H
#define BOND_COMMON_H

#define BOND_PORT_MAX_NUM       4
#define BOND_NAME_MAX_LEN       16

enum bond_group_id {
    BOND_FIRST_ID = 1,
    BOND_MAX_ID = BOND_FIRST_ID,
    BOND_MAX_NUM,
};

#define BOND_ID_IS_VALID(_id)   (((_id) >= BOND_FIRST_ID) && ((_id) <= BOND_MAX_ID))
#define BOND_ID_IS_INVALID(_id) (!(BOND_ID_IS_VALID(_id)))

#endif